package com.qr.bean.wmyw;

import java.sql.Timestamp;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:26:50
 */
@ApiModel(value = "qr_sys_users", description = "城市运营中心")
@TableName(value = "qr_sys_users")
public class QrSysUsers implements Serializable {
	@ApiModelProperty(value = "自增主键")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "自增主键不能为空")
	private Integer id;
	@ApiModelProperty(value = "部门id")
	@TableField(value="dept_id")
	private Integer dept_id;
	@ApiModelProperty(value = "角色id")
	@TableField(value="role_id")
	@NotNull(message = "角色id不能为空")
	private Integer role_id;
	@ApiModelProperty(value = "员工编号")
	@TableField(value="user_number")
	private String user_number;
	@ApiModelProperty(value = "员工登录账号")
	@TableField(value="user_name")
	@NotNull(message = "员工登录账号不能为空")
	private String user_name;
	@ApiModelProperty(value = "员工真实姓名")
	@TableField(value="real_name")
	private String real_name;
	@ApiModelProperty(value = "登录密码")
	@TableField(value="passwd")
	private String passwd;
	@ApiModelProperty(value = "男=1 女=2")
	@TableField(value="gender")
	private Integer gender;
	@ApiModelProperty(value = "手机号码")
	@TableField(value="mobile")
	private String mobile;
	@ApiModelProperty(value = "电子邮箱")
	@TableField(value="email")
	private String email;
	@ApiModelProperty(value = "0=禁用 1=启用")
	@TableField(value="status")
	private Integer status;
	@ApiModelProperty(value = "注册IP")
	@TableField(value="create_ip")
	private String create_ip;
	@ApiModelProperty(value = "创建时间")
	@TableField(value="create_time")
	private Timestamp create_time;
	@ApiModelProperty(value = "最后登录IP")
	@TableField(value="last_ip")
	private String last_ip;
	@ApiModelProperty(value = "最后登录时间")
	@TableField(value="last_visit")
	private Timestamp last_visit;
	@ApiModelProperty(value = "登录次数")
	@TableField(value="login_count")
	private Integer login_count;
	@ApiModelProperty(value = "1=默认 0=非默认")
	@TableField(value="init_default")
	private Integer init_default;
	@ApiModelProperty(value = "错误次数")
	@TableField(value="error_count")
	private Integer error_count;
	@ApiModelProperty(value = "用户token凭证")
	@TableField(value="token")
	private String token;
	@ApiModelProperty(value = "旧token")
	@TableField(value="old_token")
	private String old_token;
	@ApiModelProperty(value = "0=否 1=是")
	@TableField(value="need_new_pwd")
	private Long need_new_pwd;
	@ApiModelProperty(value = "用户组id", hidden = true)
	@TableField(value="group_id")
	@NotNull(message = "用户组id不能为空")
	private Integer group_id;
	@ApiModelProperty(value = "管理端=1")
	@TableField(value="user_type")
	private Integer user_type;
	@ApiModelProperty(value = "用户端小程序id")
	@TableField(value="mp_c_id")
	private String mp_c_id;
	@ApiModelProperty(value = "商户小程序id")
	@TableField(value="mp_b_id")
	private String mp_b_id;
	@ApiModelProperty(value = "配送小程序id")
	@TableField(value="mp_r_id")
	private String mp_r_id;
	@ApiModelProperty(value = "微信支付商户号")
	@TableField(value="wx_pay_id")
	private String wx_pay_id;
	@ApiModelProperty(value = "微信支付秘钥")
	@TableField(value="wx_pay_secret")
	private String wx_pay_secret;
	@ApiModelProperty(value = "接入方式:按年付费=1 按交易额抽佣=2 独立部署=3")
	@TableField(value="run_type")
	private Integer run_type;
	@ApiModelProperty(value = "抽佣比例")
	@TableField(value="commission_rate")
	private BigDecimal commission_rate;
	@ApiModelProperty(value = "配送距离(km)")
	@TableField(value="delivery_radius")
	private Integer delivery_radius;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public Integer getDept_id() {
		return dept_id;
	}
	public void setDept_id(Integer dept_id) {
		this.dept_id = dept_id;
	}
 
	public Integer getRole_id() {
		return role_id;
	}
	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}
 
	public String getUser_number() {
		return user_number;
	}
	public void setUser_number(String user_number) {
		this.user_number = user_number;
	}
 
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
 
	public String getReal_name() {
		return real_name;
	}
	public void setReal_name(String real_name) {
		this.real_name = real_name;
	}
 
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
 
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
 
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
 
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
 
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
 
	public String getCreate_ip() {
		return create_ip;
	}
	public void setCreate_ip(String create_ip) {
		this.create_ip = create_ip;
	}
 
	public Timestamp getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}
 
	public String getLast_ip() {
		return last_ip;
	}
	public void setLast_ip(String last_ip) {
		this.last_ip = last_ip;
	}
 
	public Timestamp getLast_visit() {
		return last_visit;
	}
	public void setLast_visit(Timestamp last_visit) {
		this.last_visit = last_visit;
	}
 
	public Integer getLogin_count() {
		return login_count;
	}
	public void setLogin_count(Integer login_count) {
		this.login_count = login_count;
	}
 
	public Integer getInit_default() {
		return init_default;
	}
	public void setInit_default(Integer init_default) {
		this.init_default = init_default;
	}
 
	public Integer getError_count() {
		return error_count;
	}
	public void setError_count(Integer error_count) {
		this.error_count = error_count;
	}
 
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
 
	public String getOld_token() {
		return old_token;
	}
	public void setOld_token(String old_token) {
		this.old_token = old_token;
	}
 
	public Long getNeed_new_pwd() {
		return need_new_pwd;
	}
	public void setNeed_new_pwd(Long need_new_pwd) {
		this.need_new_pwd = need_new_pwd;
	}
 
	public Integer getGroup_id() {
		return group_id;
	}
	public void setGroup_id(Integer group_id) {
		this.group_id = group_id;
	}
 
	public Integer getUser_type() {
		return user_type;
	}
	public void setUser_type(Integer user_type) {
		this.user_type = user_type;
	}
 
	public String getMp_c_id() {
		return mp_c_id;
	}
	public void setMp_c_id(String mp_c_id) {
		this.mp_c_id = mp_c_id;
	}
 
	public String getMp_b_id() {
		return mp_b_id;
	}
	public void setMp_b_id(String mp_b_id) {
		this.mp_b_id = mp_b_id;
	}
 
	public String getMp_r_id() {
		return mp_r_id;
	}
	public void setMp_r_id(String mp_r_id) {
		this.mp_r_id = mp_r_id;
	}
 
	public String getWx_pay_id() {
		return wx_pay_id;
	}
	public void setWx_pay_id(String wx_pay_id) {
		this.wx_pay_id = wx_pay_id;
	}
 
	public String getWx_pay_secret() {
		return wx_pay_secret;
	}
	public void setWx_pay_secret(String wx_pay_secret) {
		this.wx_pay_secret = wx_pay_secret;
	}
 
	public Integer getRun_type() {
		return run_type;
	}
	public void setRun_type(Integer run_type) {
		this.run_type = run_type;
	}
 
	public BigDecimal getCommission_rate() {
		return commission_rate;
	}
	public void setCommission_rate(BigDecimal commission_rate) {
		this.commission_rate = commission_rate;
	}
 
	public Integer getDelivery_radius() {
		return delivery_radius;
	}
	public void setDelivery_radius(Integer delivery_radius) {
		this.delivery_radius = delivery_radius;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}